package com.ssr.master.modules.dao;

import com.ssr.master.common.persistence.CrudDao;
import com.ssr.master.modules.entity.PersonInfo;
import com.ssr.master.modules.entity.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author ZhangPeng
 * @Describe //todo
 * @date
 * @updateBy
 * @other
 **/
@Mapper
public interface SysUserDao extends CrudDao<SysUser> {

    /**
     * @param id
     * @return com.ssr.master.modules.entity.SysUser
     * @Description //todo 第二数据源 测试
     * @author ZhangPeng
     * @date 2020/6/20 22:51
     * @other
    **/
    public SysUser getUser(@Param("id") String id);

    /**
     * @param sysUser
     * @return com.ssr.master.modules.entity.SysUser
     * @Description //todo 根据登录名查询用户
     * @author ZhangPeng
     * @date 2020/6/20 22:52
     * @other
    **/
    public SysUser getByLoginName (SysUser sysUser);


}
